package Matrix;

import java.util.ArrayList;

public class ShowMatrix {
	
	public static void get_ShowMatrix(String str, String command){
		System.out.println("\n" + str + " = ");
		System.out.println(command);
		System.out.println();
	}
	
 	public static void get_ShowMatrix(String str ,int[] Array){
		int row = Array.length;
		
		System.out.println("\n" + str + " = ");
		
		for(int i = 0 ; i < row ; i++){
			System.out.printf("%d\t" , Array[i]);
		}
		
		System.out.println();
	}

	public static void get_ShowMatrix(String str ,double[] Array){
		int row = Array.length;
		
		System.out.println("\n" + str + " = ");
		
		for(int i = 0 ; i < row ; i++){
			System.out.printf("%f\t" , Array[i]);
		}
		
		System.out.println();
	}
	
	public static void get_ShowMatrix(String str , double[][] Array){
		int col = Array.length;
		int row = Array[0].length;
		
		System.out.println("\n" + str + " = ");
		
		for(int i = 0 ; i < col ; i++){
			for(int j = 0 ; j < row ; j++){
				System.out.printf("%f\t" , Array[i][j] );
			}
			System.out.println();
		}
		System.out.println();
		
	}

	public static void get_ShowMatrix(String str , double[][][] Array){
		int level1 = Array.length;
		int level2 = Array[0].length;
		int level3 = Array[0][0].length;
		
		System.out.println("\n" + str + " = ");
		
		for(int i = 0 ; i < level1 ; i++){
			for(int j = 0 ; j < level2 ; j++){
				for(int k = 0 ; k < level3 ; k++){
					System.out.printf("%f\t" , Array[i][j][k] );
				}
				System.out.println();
			}
			System.out.println();
		}
		System.out.println();
	}
	
	public static void get_ShowMatrix(String str , double number){
		System.out.println();
		System.out.println(str+" = ");
		System.out.println(number+"\n");
	}
	
	public static void get_ShowMatrix(String str , int number){
		System.out.println();
		System.out.println(str+" = ");
		System.out.println(number+"\n");
	}
	
	public static void get_ShowMatrix(String str , float number){
		System.out.println();
		System.out.println(str+" = ");
		System.out.println(number+"\n");
	}
	
	
}
